home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-05-18 | 971 b | 43 lines | [TEXT/CWIE] |
- //
- // structs.h
- //
-
-
- /* OBJECT RECORD STRUCTURE */
-
-
- struct ObjNode
- {
- long NodeNum; // node # in array (for internal use)
- struct ObjNode *PrevNode; // address of previous node in linked list
- struct ObjNode *NextNode; // address of next node in linked list
- long Genre; // obj genre: 0=sprite, 1=nonsprite
- long SortSlot; // sort value
- long Type; // obj type
- long ModeFlags;
- void (*MoveCall)(void); // pointer to object's move routine
- TQ3Point3D Coord;
- float RotX,RotY,RotZ;
- float ScaleX,ScaleY,ScaleZ;
-
- TQ3Matrix4x4 BaseTransformMatrix;
- TQ3TransformObject BaseTransformObject; // illegal ref to BaseTransformMatrix
-
- TQ3GroupObject BaseGroup; // group containing all geometry,etc. for this object (for drawing)
-
-
- };
- typedef struct ObjNode ObjNode;
-
-
- /* NEW OBJECT DEFINITION TYPE */
-
- typedef struct
- {
- long genre,type;
- TQ3Point3D coord;
- unsigned long flags;
- long slot;
- void (*moveCall)(void);
- }NewObjectDefinitionType;
-